package com.yrd.common.webui;

import org.eclipse.jetty.websocket.servlet.WebSocketServlet;
import org.eclipse.jetty.websocket.servlet.WebSocketServletFactory;

@SuppressWarnings("serial")
public class EventServlet extends WebSocketServlet
{
    @Override
    public void configure(WebSocketServletFactory factory)
    {
    	factory.getPolicy().setIdleTimeout(1000 * 3600 *24*365);
    	factory.register(EventSocket.class);
    }
}
